package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ExplicitTable implements SimpleTable {

    private int beginIndex;
    private int endIndex;
    private LocalOrSchemaQualifiedName tableOrQueryName;

    public ExplicitTable(int beginIndex,
                         LocalOrSchemaQualifiedName tableOrQueryName) {
        this.beginIndex = beginIndex;
        this.endIndex = tableOrQueryName.getEndIndex();
        this.tableOrQueryName = tableOrQueryName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public LocalOrSchemaQualifiedName getTableOrQueryName() {
        return tableOrQueryName;
    }

}
